//
//  SecondViewController.m
//  模态视图Present
//
//  Created by apple on 15/9/14.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
    self.view.backgroundColor = [UIColor orangeColor];
    // Do any additional setup after loading the view.
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    if (_didAbc)
    {
        _didAbc(@"日");
        
    }
    
    if (_aB)
    {
        NSString *text = _aB();
        
        NSLog(@"%@",text);
    }
    
    //弹出页面调用dismiss返回前一个页面
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)dealloc
{
    NSLog(@"%s",__func__);
}

@end
